﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Aandelendelen.Controls
{
	public partial class DatePickerControl : System.Web.UI.UserControl
	{
		private bool showDay = true;

		protected void Page_Load(object sender, EventArgs e)
		{

		}

		public int YearHigh
		{
			get { return this.YearpickerControl1.YearHigh; }
			set { this.YearpickerControl1.YearHigh = value; }
		}

		public int NumberOfYears
		{
			get { return this.YearpickerControl1.NumberOfYears; }
			set { this.YearpickerControl1.NumberOfYears = value; }
		}

		public DateTime SelectedDate
		{
			get
			{
				return new DateTime(this.YearpickerControl1.SelectedYear, this.MonthPickerControl1.SelectedMonth, this.DayPickerControl1.SelectedDay);
			}
			set
			{
				this.YearpickerControl1.SelectedYear = value.Year;
				this.MonthPickerControl1.SelectedMonth = value.Month;
				this.DayPickerControl1.SelectedDay = value.Day;
			}
		}

		public bool ShowDay
		{
			get { return this.showDay; }
			set { this.showDay = value; this.DayPickerControl1.Visible = value; }
		}

	}
}